package generics;

/**
 * @author 杨宇
 * @version 1.0 2016/11/2
 */
public class ArrayOfGeneric {
    static final int SIZE = 100;
    static Generic<Integer>[] gen;

    @SuppressWarnings("unchecked")
    public static void main(String[] args) {
        gen = (Generic<Integer>[])new Generic[SIZE];
        System.out.println(gen.getClass().getSimpleName());
        gen[0] = new Generic<Integer>();
        gen[1] = (Generic<Integer>) new Object();
    }
}
